﻿namespace PddHelper.Api
{
    /// <summary>
    /// api返回值状态码
    /// </summary>
    public enum ApiStatusCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        OK = 2000,

        /// <summary>
        /// 资源已变更
        /// </summary>
        ResourceChanged = 3005,

        /// <summary>
        /// 请求错误
        /// </summary>
        RequestError = 4000,

        /// <summary>
        /// 身份认证错误
        /// </summary>
        IdentityAuthenticationError = 4001,

        /// <summary>
        /// 权限不足
        /// </summary>
        NoPower = 4003,

        /// <summary>
        /// 访问的资源不存在
        /// </summary>
        ResourcenotExist = 4004,

        /// <summary>
        /// 参数错误
        /// </summary>
        ParameterError = 4005,

        /// <summary>
        /// 业务异常
        /// </summary>
        BusinessException = 4007,

        /// <summary>
        /// 服务器内部错误
        /// </summary>
        InternalServerError = 5000
    }
}
